package com.aoxiang.zbox.config;

import com.aoxiang.zbox.common.util.JwtUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Description:
 *
 * @author: aoxiang
 * @create: 2025-01-10 10:52
 **/

@Configuration
public class JWTConfig {
    @Autowired
    private JWTProperties jwtProperties;

    @Bean
    public JwtUtil getJwtUtil() {
        return new JwtUtil(jwtProperties.getSecret(), jwtProperties.getExpireTime());
    }
}
